package com.example.spring2304.stbu;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

//    @Bean
//    public CustomerByAno getCustomer(){
//        CustomerByAno cu = new CustomerByAno();
//        cu.setId(78000);
//        cu.setUsername("qqqq");
//        cu.setPassword("66666");
//        return cu;
//
//    }


    @Autowired
    CustomerByAno ano;

    public void setInfo() {
        ano.setId(4444);
        ano.setUsername("5555");
        ano.setPassword("6666");
    }
    public void readInfo() {
        System.out.println("id=" + ano.getId() + "username=" +
                ano.getUsername()+ "password=" + ano.getPassword());
    }
}
